
#ifndef INSTRUCTIONS_H_
#define INSTRUCTIONS_H_

#include <string>
#include <sstream>			//B.1.a
using namespace std;

struct Instructions {
public:
	// constructors
	Instructions () {}
	Instructions (string s): instructions(s) {}
    // utility functions
	string display() const {	//B.1.a
		ostringstream oss;
		oss << instructions ;
		return oss.str();
	}	//B.1.a

	/* MGM B2: Start */
	vector<string> splitEnter()
	{
		char* pch;
		string temp = instructions;
		pch = strtok((char*)temp.c_str(), "\n");
		while (pch != NULL)
		{
			instructs.push_back(pch);
			pch = strtok(NULL, "\n");
		}
		return instructs;
	}
	//vector<string> get_instruct() const {return instructs;}
	/* MGM B2: Start */

private:
   //constants
     
   // private data
	string instructions;

	//MGM B2
	vector<string> instructs;
};


#endif //INSTRUCTIONS_H_
